Updated build script to work from a directory at the same level as ComposerAPI.
Added support for customFields.