As far as I know, the setting via "Menu->Build->Set build commands" is per file or per session.
No, its per user, and as such should override settings in the filetype file. Did you have a project open? That also has build commands.
See [the wiki](https://wiki.geany.org/howtos/configurebuildmenu) for details.