Fix the `test_install_pre_argument_in_resulting_command` test case.

It now checks if the `--pre` output is present in versions >= 1.4 or not in versions < 1.4
Merge pull request #6594 from s0undt3ch/hotfix/6592

Fix the `test_install_pre_argument_in_resulting_command` test case.