Ensure file or template parent directories exist before delivering files