Fix invalid dir value in build config.

Convert target_dir path config to a string to ensure json structure is valid. Closes #165.