Handle unexpected relative paths from __FILE__
Fixes comref#RIPD-133