Fix the dependson and require: fallbacks
Support bricks/lib or stack_path/lib