Added check in case PACKAGE_MANAGER variable is zero length.