fix: set profile as loaded before calling doh_check_dirs