Install npm on Ubuntu when not using PPA

On Ubuntu, if we're not using the PPA, the npm package does need
to be explicitly installed. Modify the boolean logic around the
trap to only skip installing it on Ubuntu if we are, in fact,
also managing the PPA.