Is there a way to batch edit the paths in my buttons to make them conditional?

This works perfectly for the built in aliases for OneDrive and Dropbox, but for Nextcloud, where I have to create the entry, the path does not update according to where it's installed on my second computer. Described here.