Some random fixes in the sys/*.sh