update path resolution to account for stylesheet url.