platform agnostic mkdir