Abort application generation in case problems are detected when installing gems

I just had some weird permission issues that prevented me from bootstrapping a new app with pah and without this patch it will continue it's work even though we can't install gems.