Cached user.dir so getCanonicalPath uses the cached value. Reviewed-by: alanb, bpb, rriggs
Reviewed-by: darcy, ihse