Fix realloc before strcat, fixes dynamic command size
Check return value
Fix make install