Using single quotes was a bad idea because it doesn't unroll the shell variable inside. Replacing with double quotes.