Using makedirs instead of mkdir