Fix failure when only `script` is declared