fix path-fixing; iff path ends with "tools"
added derby utilities
check environment at step 0; addl refactor