Include the os module for some workflow algorithms

The os was available before in the old api when import all, it has passed without
notice.

Now, it has been bassed to those scripts using the os module.

re #7760
Merge remote-tracking branch 'origin/feature/7760_workflow_import_os'