save working folder every time it is changed