fix minor bugs

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
update freebsd, merge some patches to packer

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>