Is that the only dangerous case? You could check the absolute path of it then, couldn't you?

... not that I mind much :)