more compact case statement
Merge pull request #2 from eddelbuettel/install_foo

more compact case statement