Adjust error strings in test to match OS variations
Support feeble FreeBSD versions of dd and truncate in tests