Use /usr/bin/env in shebang.

On some distributions (e.g., NixOS) the bash binary is not in /bin/bash
and the perl binary not in /usr/bin/perl.  Using /usr/bin/env in the
shebag instead should make it work.