this is a ugly workaround for replacing hardcoded path to nginx (has different paths depending on OS)