Scottish building legislation is a step in the right direction