Fix a hidden file selection bug (and ProjectManager integration tests)