Fix for rememberLastDir causing infinite loop on client side.