Makefile: do not run deps on test

It's slooooooooow.
plugins: fix duplicate code that causes bug on change_cmd

Whenever change_cmd was called, PORT started to be missing.