Make composer installation idempotent

This prevents composer from ran always if it's already installed.
Merge pull request #1 from mfn/patch-1

Make composer installation idempotent