Added a method resolving relative filesystem object path.

Added a method resolving relative filesystem object path and fixed two minor code-style inconsistencies.