Add apply-master.sh