Use return code of markup tool,

Fixed bug: fail if markup binary is not executable