Use sinon to stub process.cwd to set directory
Restructure createBallerMetadata error throwing

Error thrown by this code was getting caught and a different, less
useful error was getting thrown instead.