Use 'dpkg -l "linux-image-*"' instead of 'dpkg -l | grep linux-image-'
Use variables to store list of packages instead of producing them all the time
Merge pull request #2 from stefanct/master

code readability and performance refinements