TMA changes to get the correct filepath when indexing content
McMahon changes to make work with resource files