autotest-local: Specify test directory as a command line option

This patch allows to specify the location of the test
directory via an extra command line option, -d.

Usage:./autotest -d /path/to/dir path/to/control

Signed-off-by: Rajeev S <rajeevs1992@gmail.com>