Expand input dirs to support relative paths