Viability of variable generalised Chaplygin gas: a thermodynamical approach