simpler absolute path detection