Replace only the first occurrence of /build

Fixes #19