Don't chmod on Windows
Merge pull request #3206 from UtahDave/fix_win_cmd

Fixes #2972  Don't chmod on Windows