converted the rake task to use rails temp directory.