Duply currently sources the pre/post script, making it ignore shebang (#!) line when executing the scripts. This prevents writing pre/post scripts directly in anything but bash (e.g. python) which can be useful.
As a workaround the pre/post scripts can be used as wrappers around the actual script. But, I think it will be better if this hack isn't needed.