allow target definitions with a path part

fixed minor logging bugs