Moved function import before config_site

Otherwise the $black-xx variables wouldn’t work.