http://pegasus.goodwill.com/somepath/somethingthen current working directory is as follows:
something
is a directory, then /doc/somepath/something
something
is a file, then /doc/somepath
something
is not exist, then /doc
somepath
is a path to a directory in which "/
" may be contained.