[enh] use variable for swapfile consistency
[fix] missing shebang
[fix] mess with final path
[enh] use bash var for final path to avoid mess in the future