Take version resource from Main's class loader

It might not be the same as the system class loader.