replace $(PREFIX) by @prefix@ which will result in a path string

So we don't end up with '$(PREFIX)' in flags exposed to perl6, which will
not be resolvable at that point anymore.