Clean code for managing alternate root dirs.