Removing superfluous realpath calls.
Simplify base path.
Switching from glob to scandir to compensate for globs inability to operate on remote filesystems.
Adding debug message in event that file is skipped because it is locked by another process.
Better cleanup of directories and files.
Enhanced cleanup with belt and suspenders technique.
Logging shell output to debug log.
Removing obfuscation of code by using only one variable for the same value.
Making shell output more useful.
Making shell output more useful.
Delete the working directory before we create it just in case it didn't get cleaned up previously.
Making shell script more verbose.
Making shell script more verbose, again.
Enhanced logging to shell execution.