Implementing functions for getting various directories.