Make possible to specify a location while creating agent

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>