Corrected logic bug with setting RPATH in the opposite case