update the way to check if it is the absolute path