Add missing header fields
Change dir so we can find the resources

Workaround until the path to the resources is configurable