fixes broken if-then in led init script