A cannabis grower who hid from police in the loft of his home where £220,000 of the drug was found has been jailed.