Changed directory monitor to polling behaviour :(