Fixed bug where main config file wasn't included in optimised script