Use custom absolute path check for performance

/cc @cheald