mattoufoutu's shebang bugfix