[BUG] 1.6.0-daily - Agent Bakery - Deploy custom files on Windows: wrong bin path

I have found out this now on a fresh CMK 1.6.0p19.cee site:

Created custom file packages for Windows & Linux:

OMD[deploy19]:~/local/share/check_mk/agents/custom/mycustomfiles_linux$ tree
.
|-- bin
|   `-- foo_in_bin.txt  
|-- config
|   `-- foo_in_config.txt
|-- lib
|   `-- foo_in_lib.txt
`-- var
    `-- foo_in_var.txt

4 directories, 4 files

OMD[deploy19]:~/local/share/check_mk/agents/custom/mycustomfiles_windows$ tree
.
`-- lib    #  <---- !!!
    |-- bin
    |   `-- foo_in_bin.txt
    |-- config
    |   `-- foo_in_config.txt
    |-- lib
    |   `-- foo_in_lib.txt
    `-- var
        `-- foo_in_var.txt

5 directories, 4 files

(watch the additional β€œlib” folder for Windows)

Then I installed the agent package (with either the linux/windows custom file package):

On Linux:

locate foo_in_ | grep -v omd
/etc/check_mk/foo_in_config.txt
/usr/bin/foo_in_bin.txt
/usr/lib/check_mk_agent/foo_in_lib.txt
/var/lib/check_mk_agent/foo_in_var.txt

On Windows:

image

=> On Windows, the upper β€œlib” folder is needed to place the files correctly in subfolders bin,config,lib and var of C:\programdata\checkmk\agent. Then everything seems to work as expected.