added fix for finding location on mirrors with paths