Refactored Rakefile to make sure we set REVISION correctly in CI for deployment.