Moved version check on cfitsio

Stops build failing when compression isn't supported.