Fixed bug in check whether package is supported.

SLN-417