Make composer installation idempotent

This prevents composer from ran always if it's already installed.