Perl's make_path should be mkpath in SLE 11, see BNC #801714 

- Perl code fixes as in summary
- Also added some more debugging for further fixes