Check for the first character instead of using abspath