main/fakeroot: fix getopt to handle args with spaces

ref #3500