There is a bug in version 3.1.1 of the framework, if you emulate cloud security we do not properly escape folder names when generating a policy file. This means this error will occur when you have spaces in the folders leading up to your project. If you can rename these folders or move your project this error should be solved.
This will be fixed in version 3.2 of the framework.