Change #!/bin/bash to #!/usr/bin/env bash for better portability on systems like NixOS where /bin/bash doesn't exist. Fixes #910