Added replaceOriginal option

By default files with replace references will be stored at generated/<filepath> . If you want to replace the original files you need to provide option replaceOriginal as true.