Part out bash and support darwin