fixed package is_installed method
merged upstream