Some improvements on the error handling

use relative path to get executable cc_lookup