Use custom absolute path check for performance

/cc @cheald 

Closes #506