Turns out that the jenkins build didn't like the #{prefix}/lib, so I have replaced that with #{lib}. The rest of the diff is the same.