added support to metadata.txt removing old metadata in the package