Fix absolute path detection