Fix environment parameter handling for experiment run
Due to the default value of local, the order in which the parameters where tested was wrong and the local executor was used even if the environment option was set.
This patch reorders the tests so the the environment path is treated with higher priority.