tools: using "os.path.isabs" instead of "os.path.abspath"

Change-Id: Id8c330c3b77df7b48b45973e0ff9e5c809ac7f9a
Signed-off-by: hadong <hadong0720@gmail.com>