resolve dist path to absolute path