checkAvailability changes working directory

So, do a `cd $WORKSPACE/scala/` after.