Syntax fixes for defaulting to /usr/local/sbin/pkg vs. /usr/sbin/pkg

Per suggestion, running only File.executable? in if statement.

Also as noted, PATHEXT is a Windows thing; the 'which' function is cross platform capable
even though this code is confined to FreeBSD.