Fix path bug in the definition_dest_dir