Base installation on node version + add cleanups

Previously, installation was decided based on the file in /tmp,
now if node -v returns a version not equal to the current version
node will be downloaded and installed.
This facilitates the removal of all tmp files when done