Add completion and fix sha1sum error in mac