proc_remove() is only available in 3.10 kernels, for older kernels we'll need to use something else.  Perhaps remove_proc_entry() can be used for the directory as well.