Refactored build mtime to be available before render instead of checked afterwards