Add -D option to support dynamic root folder and dynamic remap files