Use correct permission mode for java files