Fixed Tempfile.open call for ruby 1.8.7. Added force env param to reset_avatars