Hi Titus,
try ". /etc/profile" instead of "source /etc/profile".
You can check with ". /etc/profile && set" which will print all variables
If this does not work (at least at should give you not the "source not found" any more..
try to move your relevant parts from /etc/profile into a script like "/etc/profile.d/mynoderedexecinit.sh"
Checked that here on a raspbery and it worked.