fixed scripts for Ubuntu