Local/hdfsFileExists: Check for both files and folders