Fixed getcmdln() usage in cdt-stage script