Save given base path to the environment variable