Processing options, and checking for existence of given directories