Make references to external files absolute