Fix 'file' command invocation and test expectations.