Fixed subtle bug in Gruntfile scraping logic

By using a register, it was accidentally bleeding paths between
sessions, which could screw you up if you switched projects.