Moved conf and PKI dirs to toplevel; improved files search in sec.py