Preventing  command line injection on exec command

The exec function should be replaced for something less dangerous, but, at least this is a simple temporary fix.