Updated get-headers.sh script to play nicer with hags

Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>