Fixed bash code stuff