Travis script: some changes

- test the specific changed package versions
- use autoremove
- simpler check for package availability
- replace 'grep | sed | grep | awk' with a single 'sed'