Reference the script path when looking for the preferences file