Rewrite src & dest path generating