Uses common testlibrary to find executable. Removed NullPointerExceptions. Log more. Reviewed-by: sla