Displays warning and then assumes the user provided a correct mode-file. Closes #658 (cherry picked from commit 2caa9eb9)