Watches if a file was changed and invokes command provided as a parameter