added code to fetch the stage to help determine the correct environment to run during capistrano tasks