Manually check existence of folder before creating it

Else it chokes on windows due to mode mismatch