Expands a url inside a file using the file relative path.