fix 404 on block assets when templates directory exists

continuation of #1146 (see my comment there for explanation)