Is_file PHP error when setting-up Role access for PHP script service

I get:
DreamFactory Utility Module
is_file(): File name is longer than the maximum allowed path length on this platform (1024): … Entire script servie contents follows

OS is DSP’s FreeBSD
DF is 2.2.0
I assume, that some code, when trying to get script endpoints for Role access to set-up, is checking if script is actually a file, stuffing entire script contents into is_file PHP function.

The source code that, I suspect, is an origin of an error, is BaseEngineAdpter.php, method runScript, line 134.
It may be more feasible just check for valid filename chars first.