Update new session function for smart startup based upon whether or not file passed