fixed bug to not compile when no main/src/java dir - thanks to paul blair