sets swap creation script to run only when installing package