added take function to mkdir and then cd dir