fixed check_pkg func to omit the keyword argument package