Fixed .asd file and dirpath function