repair the "path bug"

https://github.com/meteor/meteor/issues/1328#issuecomment-22913769