Build: use built-in variable in build script. Partially fixes #31