Correcting escaping and avoiding NullPointerException
Downgrading jenkins version due a bug