Running Google Dataflow job on startup

Our Google Cloud Dataflow pipeline program calls some library which dynamically links to *.so files, so to run it I need to set linux environment variable LD_LIBRARY_PATH. There is a hack to do that:!topic/, but I wonder is there a way to do that using some job that will run shell script before executing pipeline?