mkdir conditionally