Fixed permissions.
Merge branch 'dev' into nzbdrone