Modified  autotools files for pre-save and post-save directories