redone raulraja's changes (https://github.com/47deg/heroku-buildpack-scala) in recent version