Cross-platform home directory retriever