Updating routine to check for igbinary to a more reliable method