Fix makedistcheck by creating constants

This adds some extern variables and constants in favor of straight
macros.  It's not 100% elegant, but it fixes make distcheck, which was
broken.

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>
fix makecheck

relative paths in both places to make it work in both places, it seems

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>
make get_value return a definate value

minor changes to return vs goto

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>