Adding extra check for executable files as modules.