Fix infinite recursion when finding commands module
Fix infinite recursion when finding commands module

This would happen if runcommands was run in a directory without
a commands module.

- Fix file system root check
- Use a loop instead of recursion

wylee/runcommands,wylee/runcommands