corrected parent-dir so that it nil is returned for /