replace sed command with more readable one according to http://mad-scientist.net/make/autodep.html