Use inquirer's 'when' instead of 'filter' to check if a package name is available on npm

As discussed in #64