Fix and improve coverage little.
Add failing test case for files outside the home directory.
Fix getOptions to stop at an arbitrary directory (for the user, root).