Add file path support for $ref