Fixed jenkins failure when directory already exists