Use absolute path for chmod
Add COMMAND_XXX variables