Simplified the condition which detects newlines

This makes it simpler, but I still have to check for windows
line-endings. Otherwise the second byte (\n) might be interpreted as
input and not as part of the hashbang-line.