Added a common directory check function
Added a common directory check function

Added a function that checks if a directory exists. Deletes it if requested.
Recreates a new folder. This was used in two different methods, so I was able
to minimize some redundant code.

rnelsonchem/gcmstools