core: fix completion of environment variable value when beginning of value is given
core: fix completion of plugins commands when beginning of command is given