gen_compile_commands: make -o option independent of -d option