better absolute path check
inline leading char check
move cache check to avoid false positives