Retain the current directory on an orientation change