Do not leak arguments between build commands.

Only set the argument list if it really is npm (or apm) which will
be executed.

Solves: Issue#3