Removed all the hard-coded paths to instead use environment variables.