If current directory is a local file, try to find nearest dir ancestor and open it. Display warning to the user.