Fixed local run script to create preferences in the right place every time