Script to group media by metadata using symlinks