Added optional support for hashbang directives.

Fixes #180.