Update clone.js

Small if check - prevents errors in (at least) Chrome when module is not avialable.
Fix PR #24

Change the check for window.module to typeof module, since window doesn't exist
in Node
0.1.11