Generate scan_macs.sh script outside of 'dist' folder to avoid pushing it to 'gh-pages' branch