append slash to any dir
fix example
add link to stackoverflow question
use env['version'] and env['origin']