Change check_directory and introduce get_directory

Conflicts:
	lib/dataprocessor/utility.py