Fix #999, spm-init error
Merge pull request #1026 from spmjs/spm-init

Fix #999, spm-init error