known_dirs.c: Collapse GetInputDir(), GetMasterDir(), GetStateDir() with preprocessor