build: Fixing issue on first creation of metadata dir