You mean simply echo it out?
$dir contains the correct filepath but I have only been able to test this outside of load_scripts_and_styles().
What I mean to say is the function doesn’t seem to get called at all.. even a simple echo isn’t displayed which makes me think it’s a problem with the add_action() but I’m just taking blind stabs in the dark right now!