Fixed function to copy files on windows.

Fixed issue with npm needing to be called npm.cmd in windows.