Fix a bug for dirname(). Fix #558
Rebuild packages
Redirect to homepage when hash is invalid