Improved create-ear.sh script