Added a hack to set the target file if the server is 127.0.1.1, ie my laptop, ill remove this before production