Changed from exec() to execFile(). Fixes issue #1