changed interpreter from sh to bash since it was failing badly in debian