Added use of File::Spec to make script OS independent.