Add more debugging for information should the job ran on wrong node
and should there be problems accessing the state files.
Mostly a backport of commit 78fe86192b602d8a939d725c8cbfd0c2dcfea1c8

(From that commit)

    There was a problem when building from source where for example
    @bindir@ would resolve to ${prefix}/bin.

    This patch fixes it, based on http://www.gnu.org/software/autoconf/manual/
    autoconf-2.69/html_node/Installation-Directory-Variables.html

    It also changes opt_modulefiles_slurm to opt_modulefiles_slurm.in but
    I couldn't figure out how to get git diff to show that.
Run autogen.sh
Prevent job requeue on race conditon

Fix race condition which could result in requeue if batch job exit and node
registration occur at the same time.
Merge branch 'slurm-14.03'

Conflicts:
	configure
	contribs/cray/Makefile.in
	src/common/stepd_api.c