CB-6442 Fix build/deploy errors when path to project contains spaces