In Qlik Sense SaaS, currently there is no relative way to refer to the current space in which an application resides. This is needed to allow an app to be promoted between Dev, Test and Production spaces, referring to local resources, and not requiring a change to the script.
The suggested solution is to add a new system variable called "LocalSpace" which could be used to load/store files to the space with using literals.