Try to fix #8

Trying to fix problem which makes this thing totally unusable since Jenkins 1.519 came along and it stopped working for reasons unknown.