Access home directory via c api instead