Couple unix command bugs