fixing bash script error and adding new owncloud versions