build: fixed a problem with installing scripts in the build tree