Either way it should work, the switch needs to be grounded. When that switch goes up it is grounding the light so it can come on. Anytime you put a switch in it is better to have it on the ground side than the power side.
Try and clean the area of paint where the switch goes in and secure it.
Does the switch fit in the hole?