Modify monitor script to respect upload/ part of directory