Added env ifndef and rootfs script