added logic to makesymlinks.sh to only attempt commands based on existing files or symlinks