Fix cairo signature regexp

TODO: cleanup