Saves last directory and resumes it after returning from game or rotating screen