simplify firefox profile creation code