Moved replaceFile and deleteDir to Paths class, and simplified OS detection.
Added copyFile and copyDir to Paths.