Workaround for the differences between GNU and BSD versions of 'sed'

Changed in-place mode for a temp file which was used in other parts of Makefile (see Issue https://github.com/nitrogen/nitrogen/issues/69 for the original discussion of this problem).