Fix issues with asset precompilation on heroku

You can see this running at http://stockapptest.herokuapp.com/