fix for create_dirs for #56

fix for create_dirs for #56