Fix file access security issue

Patch from
https://github.com/revel/revel/commit/eb89cbf01597c88e23d94c23d85ced5f0d1b74dc