Changed method for swapping out the main stylesheet

The usual method works fine but using the filter method does not
provide access to the argument for the stylesheet version.