improve cleanup of shell adaptor tmp files

This might improve performance on MacOS specifically.
Merge branch 'master' of github.com:saga-project/saga-python