Fix for wrong check in abstractFileManager.getPath