ok, I think the substitute is wrong... it should be "s:#ICONDIR#:$dir:g" but is "s:#ICONDIR#:$dir:" which only replaces one instance per line... but the script has two in that line can you confirm this? -- remove package https://launchpad.net/bugs/42895