remove script/rails. It was replaced by bin/rails in rails 4
use FileUtils#mv instead of File#rename to move the file.

FileUtils will correctly copy the file and delete the original in
cases where we are moving the file across different disk partitions
(and will simply move it in regular cases)