set cwd to an empty string if locatoin.href is unusual #1225

#1225
Merge pull request #2 from seajs/master

set cwd to an empty string if locatoin.href is unusual #1225