Set time limit to 20
Catch OSError instead of IOError after os.makedirs