PHP Composer: check cwd exists