Handle path resolution of 0 (and invalid negative values).