Added a useExt option that changes file extensions

Using substring rather than regex as its probably more resilient