add crash recovery dirs handler

#!/bin/bash -x  - my mistake
Replace case in dep_check to cycle
Add small handler to remove old crash dirs.
Please test this.