This seems like one of those places where we really aught to be using overridden methods. It seems like the conditionals are always around static content path stuff. Would it be better to add a method to the modulestore api to handle this case?