Update smartfs.lua

added a boolean in the button function so we have the option of exiting on pressing it