Abstracted root dir finding into its own module.