Added check for source dir existance, updated gradle and set plugin to 'scala' instead of java

when overriding source sets or syncing projects with empty src dirs from certain VCS systems, it can happen that the source directory doesn't exist