Fixed some errors with filenames and Ruby 2.0