[server] NotADirectoryError does not exist on py2x, use IOError instead

8 jobs for conda-ci in 149 minutes and 33 seconds (queued for 11 seconds)