This perhaps can be partially solved if Lazarus do not send full, but relative path to resource compiler. Usually, project's main directory name may constain spaces and most of sources including resources are in the main directory.
On Windows, running external executable assume also sending working directory for that application by Shell function and thus is enough to send also relative path with filename for the parameters application will use. If that is the case on Linux, problem can be avoided.