Use eval instead of bash -c

`bash -c` has issues with escaped characters and quotes

Signed-off-by: Rohan Jain <crodjer@gmail.com>