Retry package installs

Sometimes package installs can fail to aquire the lock file, so retry
the command in that case.
Merge pull request #185 from dalen/retry

Retry package installs