Fix wrong check in abstractFileManager.getPath