Fixed dirname (fixes #73)
Added support for absoulte path in src attribute for include, insert and script tags