Fix running scripts from the gui after deb building