Correctly resolve relative root path for a clean comparison