Cleaner main() entry point
Implement X-platform getting username and home directory