resolve paths without .html if file exists