Shamelessly lift MIT-specific code from Remit
drwxr-xr-x - django