D7 module dir

There were two mistakes in the lines that create the custom-modules directory:

1. They both used the same condition.  (Too much copy and paste?)
2. They compared variables as the default (string) and not as integers.