CMake function copy_data_dir_to_build didn't properly handle dependencies.

Before this if you altered some example data, rebuilding Allegro would not copy the updated files. Now it works correctly (although it still copies each file 3 times for some reason).