fix an issue in cruise.rb
fix permission issues with $TREMA_HOME/tmp directory