replace java.nio.File.move(), since it is available only in JDK version >= 1.7