add glob support for pkg.output

spmjs/spm#848
今天搞