#!/bin/bash -> #!/usr/bin/env bash

in FreeBSD, bash is /usr/local/bin/bash