Fix exit code for Rake task