Fixed path resolution function