core: support space within source directory

Change-Id: I94358b10306a3bf9b2f996e68cd5bcce9a3243c4
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>