removed path.dirname