Fix compatibility with Heroku buildpacks