Change map module to use command depend on platform