Fix a race condition while checking for directory existance