Fix errors and missing files in the release process

What the title says ;) 
Also allows for deployment in a subdirectory!