chmod a+x on egcurl

This script is meant to be executed directly.  chmod it so it can be.