Fixed bug in handling the case when in a sub-dir of the workspace