I using `swdir = version[:-1]` not reliable enough? This really seems like overkill...

As far as I can tell, the `bfast` version always has had a single letter at the end up until now. Do you have any counterexamples?