fixed hash bang and test for sh