How to set the path for userpref.blend file?
Setting the environmental variable BLENDER_USER_CONFIG would do the job. So Blender assumes the path to the userpref.blend file would be BLENDER_USER_CONFIG/userpref.blend