Fix bug causing hidden files to not work