add OpenBSD/pkg_tools support
fix shebang on BSD systems