FIX: check errno, not mkdir return value


git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4990 42a5c34f-2066-0410-bec5-ba365beb4995
ENH: safe file I/O


git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4991 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: catch exception


git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4992 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: throw exception rather than call exit()


git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4993 42a5c34f-2066-0410-bec5-ba365beb4995