Optimize rehash times by not running the rehash.rb script if discovered Gemfiles haven't changed

This is achieved by comparing the modification times of Gemfile manifests against their Gemfiles.