Fix wrong implementation for remote files

JENKINS-23849: Relative path "/../" in "File path" are ignored 

Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-23849