append .cmd to apm in package-manager.coffee if platform is win32
avoids NOENT error when searching for packages
remove os require use process.platform instead
Merge pull request #2059 from bradgearon/master

append .cmd to apm in package-manager.coffee if platform is win32