fix outputDirectory

https://github.com/spmjs/spm/pull/969