Update spm-package.js
Merge pull request #2 from afc163/patch-1

handle relative path in package.spm.main