Added user-data-dir parameter so that applications can choose their own profile directory if needed.