[BZ 873471] - Correctly resolve relative paths against not-yet existing deploy dirs.

(cherry picked from commit 10795bd4327a09cf763e02b3afae72c7b5a45841)