Change _PROGRAMS to _SCRIPTS

PROGRAMS didn't work
Fix relative path
Check for sed in ./configure
Conditional module installation

Conditionals have been implemented for all modules, allowing selective
installation. External paths are also configurable, with `--with-FEATURE=`
options.