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.