regex to detect variable names was broken

when rendering file names, regex was broken when directory path contains pluses.