Add operating system detection for the shebang insertion.