Improved stack trace parsing