Error if config file is not found
Update the detect script to support publishconf.py

Related to #2