Fixed a couple of bash mistakes