add posix dirname and basename
ignore compiled snippets