Normalize fileMode/directoryMode configuration for assemblies

Simplify configuration (this also avoids some problems seen in productization).