Fix erroneous detection of relative paths