How about if we run sake from for example framework/admin by executing ../sake? :-) this will give us framework=.. and base=. which will probably break the script down below.