Add common.sh to contain common definitions
Source common.sh
Fix default metadata file