Test for existing directory has been removed on non-windows system due to the errors.