SCUBA2: remove trailing text from line with config filename

Splitting on just the carat may leave additional parameters in the
config filename string, especially if the config filename was split
over multiple lines.