Cleaned up build process.

Use env vars instead of hard coding paths.