Fixing a rails command, and adding error-checking to the restart function.
Merge pull request #1182 from blrm/harden-update

Fixing the harden_security script, and adding some error-checking