Watch for changes on template path. Fix invalid filename strip func.