Fix for sed "permission denied" error in Windows build

Cygwin sed in-place edit (option -i) broken, will mess up permissions.
Changed to work without in-place edit.
Merge pull request #18 from Kynos/master

Fix for sed "permission denied" error in Windows build