Fixes #5114: Handle trailing slash in directory names when getting techniques