Fixed an unexpected exit error on dash shell