makedir conditional