save `this.$project.getProjectDir()` in a variable before the forEach