Bug with missed `mtime` in middleware imports. Fixes #1359