fix bug and use absolute paths in bootstrap script