spm_completion writing permission

https://github.com/spmjs/spm/issues/998