Fixes generation of packageMocksSpec.js