Fixed ajax support to also update the current dir permissions