Change dirname to use Heroku standard