Safely construct filename in OutputToH5

Use os.path.join instead of manual construction.
This fixes Issue #13.
Check result of getcwd calls

This is safer and prevents compiler warnings.
Merge pull request #16 from hemberger/FixMinorIssues

Fix minor issues