Fix shebang
Fix FreeBSD issues for elfpatch.  First line of "ldd" is the binary name.
Also add default output filename for 'elfpatch' rather than stdout when stdout is a TTY.
Merge branch 'elfpatch-freebsdfix'
Merge branch 'shebang-fix'