When running gitbook build -f ebook in a path containing space (C:\Users\string1 string2\[...]) I get the following:
Starting build ...
Command failed: Cannot read from C:\Users\string1
It worked perfectly fine under a folder path without spaces in it, and that plus the error message lead me to believe it has something with the space.