compile.sh only attempts to compile java files if any are present