fix rake task to run on amazon cloud