Made bs shebang lines more general.