> In general, it is very hard and time consuming to determine that 
> different paths refer to the same file, so require does not even try to 
> pretend that it is robust.

Why not calculate a hash of the file and use this in the check. This 
would make the whole thing independent from the actual path, and allows 
to re-require a file if its content changes.

martinus