Update sync script so that it uses bash and can be run from anywhere and maintain links