Automessage Fatal Error - Undefined Function

I was running a cron for a different plugin. that cron calls require_once($path.'/wp-config.php');
This then causes a fatal error below

<b>Fatal error</b>: Call to undefined function set_automessage_url() in <b>/home/MY_HOME_USERNAME/public_html/wp-content/plugins/automessage/automessage.php</b> on line <b>35</b><br />

To fix this fatal error, I had to use the full path to the includes in automessage.php

require_once('/home/MY_HOME_USERNAME/public_html/wp-content/plugins/automessage/includes/config.php');
require_once('/home/MY_HOME_USERNAME/public_html/wp-content/plugins/automessage/includes/functions.php');
require_once('/home/MY_HOME_USERNAME/public_html/wp-content/plugins/automessage/classes/class.automessage.php');
require_once('/home/MY_HOME_USERNAME/public_html/wp-content/plugins/automessage/classes/class.user.php');