extracting _append_path function
tidying
using _append_path function on plugins
Merge branch 'extracting_append_path_function'