create Sub Directory
Creates a subdirectory within the supplied main directory.
Return
the path to the subdirectory, or mainDir, if something went wrong
Parameters
main Dir
a path to the directory to hold the subdirectory, must not be null
dir Name
the name of the subdirectory, must not be null