fixes for local path detection