Add --with-rundir configure flag

This might not be the best autotools option to use, and if
not, that can be fixed before this is merged to master.
In the meantime, I think this covers everything and it
builds and seems to work properly for me.