What you need is get_stylesheet_directory_uri
, which works exactly the same like get_template_directory_uri
but it will return the child theme directory if you are using a child theme, and it will return the parent theme directory if not.
echo get_stylesheet_directory_uri();