Changed the detect script to more accurately determine whether this is a TomEE project
Copied the compile script from github.com/heroku/heroku-buildpack-java (602b016eb4)