Updated build script.
Handle unlink errors.