Removed reliance on commands that aren't in base FreeBSD.