Fixed incompatble command flags on mac os x