Fix phpswitch errors when running it from home directory