Improved prompt for file or directory