Parse shebang line internally.

Delegating to perl interpreter fails for PHP by unknown reason.