Fix git repo path for wmf-config files

dirname( $selectedFilePath ) was equal to '/home/wikipedia/common/wmf-config', which is never going to be queal to 'wmf-config'

So grab the full path for the file, then just get the last folder using basename()

Change-Id: If030d617a90c1b8762be6485a7c3e957356bcbd0