change prev commit to use conf.name only when root

otherwise you get mocha instead of visionmedia-mocha etc