grep '[i]maprowl'
のところで、
com.hoge.imaprowl-launch-when-toggle-is-off
自身が引っかかっててif文の内部が実行されてないんじゃないの?