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

avoids NOENT error when searching for packages