Fix shelling out clone and writing to regexes.js