Fix for relative path resolution