Prevent script from hanging when no stdin is present
Merge pull request #5 from lennartvdd/enh/fixHangOnNoStdIn

Prevent script from hanging when no stdin is present