I did not want the extract function to change my working directory when I added it. However I should have fixed the command calls that assumed I was in a newly created directory at the same time.