To pass tests on windows.
Fix for user_dir case