Append / at the end of the name of the directory path if it is not there
appendDirName(source.dir)
string with path to the source directory
string with / at the end