Didn't mean to offend any one with my comment. I should have said the "|| dir" construct is great for quick dirty scripts. But I do find that for making robust scripts other approaches are needed.