Avoid mkdir and allocs if disabled
Merge pull request #364 from ax3l/fix-phaseSpaceDir

Avoid mkdir and allocs if disabled