Fixed bash scripts