core : adding support for pre and post script
core: pre and post script if now compliant with "-q" option