Fixed how metadata is handled because of python2.6 importlib dependency