Handle CLI scripts

Detect cli scripts and avoid undefined index.
Fix issues : 
- https://github.com/getsentry/raven-php/issues/113 
- https://github.com/getsentry/raven-php/issues/136 
- https://github.com/getsentry/raven-php/issues/97