can't assume classes are compiled to target/classes - lib dir is ok though
added check for missing lib dir
cleanup
renamed with underscore prefix, that's the convention for this script