A function to ensure that a directory name is in the proper format to be pasted together with a file name. It adds a trailling / if necessary.
check_directory_name(directory)
A string containing a directory path that we wish to check.
A string object that is a directory name with a trailing slash, which is what will be required if we wish to paste it and a file name together.