Working on util function for locating directories.