refactor(cloudcmd) __dirname -> DIR