changed all unix-only dependencies

There were several locations with unix-only dependencies. These were
causing errors when running in a windows console. Wrapped all of these
with try logic. Now it all runs in windows without any errors.
I don't understand this change.
It seems to imply that run_time is sometimes a string, and sometimes false.
How is this different on windows from unix?