Fix json, skip dotfiles, no spaces in filenames