Move extname append outside of normalize logical path
Use name from normalize instead of rechomping extension
Skip dir matching with logical path plus extname

Covered by has_asset check