Fixes #4300: Check for fileformat 4, and add migration if present

http://www.rudder-project.org/redmine/issues/4300