fix 's:path undefined' errors

Closes #14.