fix env, file perms and update scala
add classpath config
Merge pull request #1 from tim-d-blue/master

tim's fixes