Find username on OS X without Foundation

Apparently Foundation is not always importable on OS X. This patch adds a
fallback to using the unix pwd database if this is the case.

This should fix #5.