Worked around the relative path issue, added test code for auto extraction