war: replacing fs.renameSync with own version to prevent error on linux and renaming on different partitions