Improved compatibility with Heroku build process

This fixes the problem we were having with the Python buildpack.

I made a regression test deploying a node application and it worked fine.