moved file-accessible-directory-p check to prepend-path function