.ninja_log etc. now created per input_file.

Hidden files like .ninja_log are now created per input_file,
by suffixing them with the input_file name.

To keep backwards compatibility, if the input_file == "build.ninja",
no suffix is appended.

This is needed to ensure RemoveAbandonedOutputs works correctly
when multiple *.ninja files are generated in one directory.