Fixed installSinglePages so that hidden files and empty files are skipped