Fixed build script to use env variables instead of properties file