You may like to look at this thread
https://www.b4x.com/android/forum/threads/custombuildaction-types.148787/post-943058 where I tried to clarify the options for the custom builder and in Erel's reply he said "
folders ready - after the code is parsed and the folders tree is ready. This is the only cross platform step."
So "folders ready" appears too late for your purpose and I don't have an alternative solution for you.