update gmvault script to support links and work on mac with perl and on linux with readlink if perl not here