Fixed determining shell for shebangs with flags