support relative paths in input and fixes bug with flattening of output ...

fixes the bug noted in the source with flattened output directory.
Also supports relative paths in input structure such as an input file like `.\ts\file1.ts` with gulp src command like `gulp.src('ts/*.ts').pipe(...`.