Use filepath package for operations on filepath

Before that I used crazy stuff with strings.Split
Always return nil at the end of a function

If no error has been detected so far...
Use xml.Header