[FIX JENKINS-23146] Additional check before setting relative path