add freebsd specific get_mode method

lib/specinfra/backend/exec.rb use get_mode method
on FreeBSD it use stat -c option that does not exist in freebsd stat util