filesAvailable method in renamer.js updates