[#52423111] Ensure workfile execution location is changed.

- Make sure the dataset ids and the hdfs entry ids are not reset if the execution location does not change.
- Reset dataset ids and the hdfs entry ids anytime the execution location changes.