Rewrite package files manually after build. closes troopjs/troopjs#61