Make sure to skip vendor when looking for composer.json
Fixed file loading when a error happens