bug fix on -S switch, when package doesn't exist