Updated java/python ftplugin and added something to deal with file detection
problems.