Implement is_file and is_directory for ApkFilesystem