add freebsd specific get_mode method

lib/specinfra/backend/exec.rb use get_mode method
for FreeBSD it use stat -c option that does not exist in stat util, so it should be stat -f%Lp