Fixed issue with temporary directories creation.