Simplify relative path logic