Updated regexp to work with config headers added sometime ago

tests were failing due to legacy config gen adding nova-agent header text to the configs which was some time ago.