Minor changes and fixes after running grunt dist, to make sure the optimised build works as it should.