remove refs to files that don't exist