fix shell syntax errors on ubuntu