Corrected issue due to inconsistent output from pathname-directory, expected . but was getting #f