[PLAT-3506] Handle relative directory names correctly