Extract command variables
Add stackdump files to clean target
Improve error handling and feedback