fixing build path
fix script to handle missing folders