Hmm looks like you are right - I tested exactly this, with a slightly different script and got a 1 for both cases but the above test looks right and does suggest it works after all. If the problem is an inaccesible NFS mountpoint, how about dismounting it just from your local system during the installation?