fixed #1. Using execvp instead of system.