Prevent empty modules directories from breaking the build system