add an option to print the abspath instead of relative path