cherry picked 0562096: updated the script
cherry picked 1ef2de8 * make archive inside sources/ folder