Add commands for FreeBSD

* add version check to `check_installed`
 * support `install` command
 * support return package version for installed packages