Code cleanup in proc_open
Fix strtr() segfault