Fix type of name passed to :code.lib_dir

:code.lib_dir/1 may only accept an atom in the future, and should only
be passed an atom according to the spec.
Merge pull request #1799 from fishcakez/fix/record_extractor_retrieve_type

Fix type of name passed to :code.lib_dir