add directory check

prevents composer from failing chef run by making sure target directory either does not exist or is empty.
added support for composer environment variables
Merge pull request #3 from dyjo:composer-env-vars