resolving script path from outputDir during concatenation

Couple fixes:
1) Supporting inline and csp options, when output file path is not current working directory.
2) Regex for script search was not doing global match.