Fix for rememberLastDir causing infinite loop on client side.
Merge pull request #1 from indriq/rememberLastDir-fix

Fix for rememberLastDir causing infinite loop on client side.