Build path to db file when root option is set