Change Tools to support both abs and relative path. Not test yet, may have errors.