Fix fallback from {sc,dmd}1.conf to {sc,dmd}.conf

When adding support for {sc,dmd1}.conf in b269a91, a bug prevented the
to really fallback to {sc,dmd}.conf. This commit fixes this.
Merge pull request #2995 from leandro-lucarella-sociomantic/fix-dmd1.conf

Fix fallback from {sc,dmd}1.conf to {sc,dmd}.conf