Improve phpswitch script (Should fix #8)