Without the added line, PrepareCommand() only sets a local command_prefix variable, causing p4 errors when p4 is not on the default path. (In my case, it's at /usr/local/bin/p4).
Set the global command_prefix correctly
Wow yes obviously... shows how much time I had to test the work around :( Thank you very much!
You're welcome :)