Made extension option in script consistent with other scripts (e.g. fitsheader)