Global environment substitution
basename the file before regex matching it