Fix nested bash syntax