added new functions for rspec-rerun and changed back ticks to $() and all single quotes to double quotes