Nitpick: a simpler `sed` command could be:

```
sed -i -E "1s:.+:#\!${PREFIX_PATH}/bin/jruby:" "$file"
```

Since we already know that the 1st line is the shebang we want to replace, this simply instructs sed to replace the entire contents of the 1st line with the new shebang.