Fixed move_files for use in JRuby (#28)